Fix not deleting table with info about relation
Update test
Add HAS_MANY relation
Add test