Interface between tags stored in JSON and the Database