improved callback name generation
improved mysql wrapper