wrap mysql operations in a dao with metrics