Adding buildValues method
Updating insertEntryQuery to use buildValues method
Adding updateEntryQuery logic