Adapt some of the ACL-schema SQL statements