added basic auth
added basic auth and session stores
db stuff