SQL to create resource policies