create db and insert by primary key