add default date for empty fields involving DB transactions