db connection now closes