add ) to close sql query