Payments firm Mindgate switches to open-source distributed SQL database