That mp3/SQL thing is called digitaldj. There's a webpage at http://nostatic.org/ddj/ddj.html, with full source code.