added database
authentication is working