move functions that convert event formats together
remove reference to sqlite