Improve model attribute definitions
Update database clean scripts
Add first version upgrade script and database version control