get document from db by _id