modified model, rest, and database to handle createdDate and updatedDate.  cleaned up the update method in database service