promise for tables and rows