constWHERE_CLAUSE=`WHERE user_id='${userId}' AND db_slug='${db.dbSlug}' AND table_slug='${table.tableName}'`;
constexistingTableInDb=awaitDB_HANDLER(
`SELECT * FROM user_database_tables ${WHERE_CLAUSE}`
);
if(existingTableInDb&&existingTableInDb[0]){
constupdateChildrenTablesInfo=awaitDB_HANDLER(
`UPDATE user_database_tables SET child_table='1',child_table_parent_database='${originDbName}',child_table_parent_table='${originTableName}' WHERE id='${existingTableInDb[0].id}'`