how to assign table name dynamically