Changed to single connection in db functions