Loading mp3 from a database

Hey people I am making a player for someone I know, and he wants the player to take the songs from a database that he will have for songs. I just wanted to know how I can go about making this. Will this work or will I have to import the songs into Flash MX?