added search history and support for comments in sql statements