beginning of custom db work --KW