Thanks for your query. LangChain is producing the SQL queries. We have already mentioned the database connection string there to connect the LangChain with the database. It includes the database name. LangChain will understand the table name from your prompt. It would be nice to craft prompt which implicitly include the table names in it.