Change the implementation of default branch

Remove the is_default column from dbo.Branches and sort branches by id.