renamed tables functions, added possibility to get single table