added client side hashing support for db