Fixed bug with WHERE clause in DB update method and fixed notification bug.