Custom database data error codes

Many of the custom database methods return an X_Code to indicate the success or failure of the operation. Note that error codes borrow existing X-codes and for this reason can be a little strange; they are intended for internal debug use only. The possible return codes are: