Moves Merchant Repository to Database Layer