add result (boolean) for a sql query