Add document to database not returning path
refs #620