Fixed problem with encrypting database keys.