Fix sql error for acknowledge. references #94