temporarily changing permissions for database work