Accies captain Greg Campbell led by example with the first try of the afternoon.
The hosts added three more through stand-off Alex Blair, replacement Tom Stuart and winger Nyle Godsmark to gain the bonus point. Their kicking points all came from the boot of scrum-half Ruairidh Bonner. Melrose had tries by hooker Alun Walker and full-back Austin Lockington. Joe Helps added three penalties and a conversion.
Gala took advantage of Melrose's loss to move top of the table by defeating Hawick 32-13 in a Borders derby at Netherdale.
Winger Grant Somerville's good start to the season continued with a try double for the hosts.
Further touchdowns came from second-row Opeta Palepoi, full-back Graham Speirs and No 8 Tom Weir. Centre Ewan Scott bagged a penalty and two conversions. Hawick's try came from Neil McComb with full-back Neil Renwick kicking the rest of their points, but they were well beaten.
After last week's defeat at Heriot's, champions Ayr got back to winning ways at Rubislaw against Aberdeen Grammar.
The Millbrae men toughed out a 25-19 victory having been 16-12 down at the break. They had tries from centre Robbie Fergusson, the returning back-row Andrew Dunlop and replacement scrum-half Murray McConnell. Ross Curle and Finn Russell shared the kicking points.
Grammar, unable to build on last week's win over Stirling County, scored a try through back-row Tony McGinness but the bulk of their points came from stand-off Mark Ryan with four penalties and a conversion.
At Bridgehaugh there was a tight encounter between Stirling County and Glasgow Hawks, the home side eventually coming through 23-20.
Captain Alex Moffat and wingers Rory Hughes and Ben Addison scored for Stirling, with centre Brian Archibald on target with two penalties and a conversion.
Hawks took a losing bonus point back to Old Anniesland after their half-backs Mike Adamson and Haddon McPherson went over the try line, the former also kicking two penalties and two conversions.
At Malleny Park, Heriot's took a 14-12 lead into the break against Currie and went on to win 32-19. Prop Craig Owenson was an unlikely two-try hero for Heriot's.
Watsonians and Boroughmuir remain unbeaten at the top of the RBS National League. The former recovered from a poor start to beat Dundee HSFP 36-15 at Myreside.
Over the road at Meggetland, Boroughmuir defeated Kelso 51-0. The two Edinburgh clubs meet in a fortnight.