Work by Zreed
Explicitly close every resource
Create the UUID index on the right table as well as on table creation