Switched over to flask-sqlalchemy and flask-restless. Improved schema.