init db migrations and fix rmt/__init__.py