fixing mysql 150 errors