insertdata gets proper db file