Change events to bitlib management, update MYSQL handler to actually work