bug 893: fixed sql-statement by certificate revokation
bug 893: fixed some sql statements