pending db working