Fastapi sqlalchemy best practices.