Refactored dbwrapper.java - Using generic function for deleting table data