Added Database prefix and added the option to switch hashing methods.