Fixed database connection.