database: fix the data table reference