updated to allow null start and expires dates which can result in empty date fields, instead of today's date if null or 0000-00-00 00:00:00