begin handling events from mysql