Finishing up db script work

The only changes needed for this file for now is a minor change to
encrypt/decrypt the password.