fixed db so dates are unique