newest first, and close the db