added more sql commands and search history