bug 413: modified sql statement for server certificates