tables updated with foreign constraints
Merge branch 'fix-sql' into next

Merge applied foreign database tables constraints