new script for changing db permissions