Add ability to create tables and relations which compatible with ormtool
Remove unused code
Update test