converted mysql to an execut