Added SQL API for table and data insertion