changed to allow db date