add database file and change cod for it