MySQL Friendly function

replaces apostrophes to make them accepted while commiting