Transform a simple plain-text database to JSON