Changed from MySQL to Postgresql. Added password hashing.