remember previously chosen document type when upload
backup database