Add return values for save document methods

Add return values for saveDocument and bulk
SaveDocument methods of Database.