creating a mysql events