modified number to int for errors in mysql