Handle webview back button, setup activity menus, update db