end of day incomplete database work