uses temp tables to test datastore permissions