refactoring template
init BaseTable