some minor updates
refinements to database class
refinements to database class