add delete method for Entity
fix bug: get_by will return None when pass db_session