import PasswordHash and some minors changes
add DB connection from config file