Audit database object code
Corrected functions returning integer values from database objects, their behaivor may be undefined in some situations. Also corrected some documentation for functions returning character pointers.