Fixed event timestamp db call