add readSIFT and getInfo for postgresql interface
add function writeHS and writeWord