Switched to signed timestamps, 'cause it makes sqlite easier. Started adding event/string writing functions.