task-7: events functionality added, TODO: fix db functionality to delete sites