added events gui to listview
modified sqlite code