apply singleton so that every table has their own file