reorganize branch.sql