Move db init code out of routes
-Fix bug when getting user due to incorrect callback params (forgot err)