Refactor data tables, use TilesTable as example