forked from hans/Nominatim
Make access to the DB object a function, so that the connection can be opened implicitly when the object is accessed for the first time. This way we no longer need to check beforehand if a specific function of the setup needs DB access or not. Also move the check for the module to the relevant sub step.