AdhocStatement now handles parameters

Makes AdhocStatement meet this interface requirements of Statement.