Put everything into api file
Working with SQLAlchemy