trying to make a db conenction if creating one failed before