Make database connection global.