pgsql and sqlilite require different syntax for deleting enrties