sql view
added sql where GUI