updated config routes and created db