forgot that when you check the db for the last insert id of another function that inserts, its gonna be the wrong id for when you create a event and set its tags