fix error if named db does not exist