fix parse to int error and write text to DB column