complete model and database