Expose tx-db query.js via socket.io
Integrate query.js

Signed-off-by: Karel Tuma <karel.tuma@gmail.com>