update functionality such as inserting into usagedata table