added backend functionality for tags and deleting stuff from visits