Cursors will now close and load as inteded together with databases.