[#952] Add try for when db is not initialised