fix for locking file when deleting from db. This is a temporary fix until 	 decide if and when to shift DB to sqlite file db