adding subimit table to db