Add API to create tables