Fix for initializing database connection.