differentiate between .where clause sqlite/pg