Fix issues with the sql, and add branch user access creation.