Fixed database connection configuration