Fix when db is not provided, like on sentinels
Merge pull request #4 from luca3m/sentinel

Fix when db is not provided, like on sentinels