reimplemented try/catch in add,get,query,utils