[P3]Refractor sql_* to events_* per issue #12