added database configuration
fixed authentication