adding logic for interactions to be added to db, looked up, and viewed