Creating a SQLAlchemy-independent REST API