Added functionality to handle local tracks

I had a couple of playlists that had mixed local tracks and spotify tracks and it spit out an error about JSON octets. I added some code in to handle local tracks and also added a proper .gitignore as  I don't think we should be committing sqlite3 databases (should we?).