added common add/update/delete item to Tools
fixed context menu, fixed update functions for database and listview