if success return assoc. array with "ret" => 0 and other fields
else return an assoc. array with "ret: != 0 and "mesg" with an error description
*/
if success return assoc. array with "ret" => 0 and other fields
else return an assoc. array with "ret: != 0 and "mesg" with an error description
*/