Began using integer flags to determine what sort of database operation to perform
Completely implemented int flags to determining database operations. Added in a clear history button to main activity.
Added HistoryService class to be tracked
Fixed locking issue: HistoryService.saveData() was attempting to release a lock twice.