Minor changes to db and routes