Take care of db closed connections

okay, makes sense. Lets go with whats easiest