added database for authentication