Closed cursor when done

As reported by daniel_sk on reddit, the cursor for the DB was never
being closed. While android will naturally close it after the lifecycle
completes and there are no more references, this is more immediate and
is the Right Thing™ to do.