fixed logger check for severity, fixed database class typos