updated edit_events and get_events to point to the correct database file