added some backend funcs to handle songs and output json for frontend