cleanup db connections in server