Change date field to timestamp in notes table, minor DB wrapper cleanups