a data access object class (sort of)