WEBCMS-24, WEBCMS-92, WEBCMS-94

Create ACL db connections, clean-up code.