Working branch

fixed so many things! (and set up the app to look for a local db).