the models for the system based on the database