Replaces old styled db connections

2 jobs for use-globals-for-database-connection in 2 minutes and 12 seconds