Moved all db connections to a single one