Added delete and insert triggers to sqlite
-removed these deletes from java code