add init db and create table func, do simple test