Make addrequest work for sqlite3

MySQL supports INSERT IGNORE
SQLITE3 (used for tesitng) uses INSERT OR IGNORE

This patch makes the ignore clause conditional on the db_uri