Added a new function to allow the database to return the datetime of the most recent entry.