updated sql to work with older versions of MySQL that only allow a single default timestamp