Add API for retrieving table schema