implemented password hashing

bugs in query
count function in mapper