read tables from DB