add auth

added db authorization.
for example work on heroku.