close the db connection after use