Mysql URL correction