fixed issue with adding date to mysql. moved date generation to php side