uses temp tables to test datastore permissions
Merge pull request #1969 from OCHA-DAP/1837-fixes-datastore-db-privilege-test

uses temp tables to test datastore permissions