fixes append md5 of SQL error