Added missing where_not to DbModel