Closed cursors in drink database handler