Close db connection