added database configuration and environment variable for testing