App will pass database connection by reference