close the db connection