+ db creation script
+ fix entity relations