CORE-3909: fixed a couple of bugs in the notificaiton cleanup code
CORE-3924: migrated to Korma version 0.3.0-RC2