fix data insertion and DB installation