change db url to shortened version
Fixed notify test and simplified some if statements.