more work on db class