Fixed sqlalchemy error in bioentity.