trying to write into mysql