UPDATE: cleanup code + add event for updating user tables on website