Changes to SQL search

Changes made, one slight issue is that once the command runs, the
DGV/table/da will not refresh despite trying all available options.