Explicitly open a db connection and throw on error.