Use mysql modules instead of commands