Checking for existing db connection b4 establishing a new one

That solves the error "Trying to open unclosed connection" in bobamo