made some fixes/additions to making dates. Bug exists where new date is
not being saved to database
date functions are pretty much completed. Previous bug fixed.