Explicitly close db cursors.