Added Build SQL Query