add test to correspond new table

- fix db index
- modify fakedb to correspond the new table