Only extend database when it is actually resolved.
Merge pull request #268 from franzliedke/patch-1

Only extend database when it is actually resolved.