- various fixes to db schema fk constraints
- added entities were retrieved before server update