Renamed CredentialsExportException to DatabaseExportException
Fixed issue on password digest generation.
Added test.