bug 1121: Added backticks to sql-queries, small typo fix
bug 1121: fixed file ending in includes/notary.inc.php