Removed unused uuid import
Implemented hash method for BaseAuthDB for hashing passwords