Create the UUID index on the right table as well as on table creation
Fix formatting in SQLDatabaseManager