close db connection