sqlalchemy select result to json