Use 1 as default for foreign keys, as autoincrement fields do not use 0
Fix migrations to correctly copy existing project data and be able to migrate up and down