more bug fixes from testing db services