model completion and database creation