listeners/jenkins: do not start when app has no db

also added test