chagne internal user db to scrypt
import cleanup