How to query a db Model from Flask AppBuilder’s Model Class

Solution
result =  db.session.query(MODELNAME).filter_by(id=someid).all()
return str(result)