changing from pg to mysql