cleanup the database connections for tilesets