Refactoring SQL executor

corrected error display shown when browsing a table for the first time after logging