prepared sqlite and pgsql support