refactored thrift, stage 1; implemented the puthandler; fixed several queries in the dao; spellchecking
error checking in puthandler