added keyboard shortcut to run sql query button and error handling feature and fixed some bugs.