Moved to SQLAlchemy ORM
Initial work for implementing JSON interface