SQLAlchemy models to Restful API