Implemented Database.getLastErrorObj method.