Updated so that timestamp gets inputed as docID in DB