rewrote the input validation
made leveldb backend handle the 'insert', 'single' and 'multi' ops