add deps for auth
refacted db stuff out of api router, add login stuff