avoid NPE when handle comes back null
fix #129, send along database parameter to REST at least for create, exists, write, read, read bulk, patch, search, and delete