added db table and some tests