generated models and database