- Try to use common model to handle common functions
- Fix foreign key issues in DB and models [migration script added]