added password hashing and some test db functions