fixed _getDB on database initialisation failure