Fix MySQL calls