database model test