[orm] fix mysql tables setup
Merge pull request #21 from velosipedist/fix/orm-portability

Fix ORM setup portability