more database and password encryption stuff