Fix database property analysis
Refactor models organisation
Refactor namespace usage
Fix some PHPStorm issues