using db for two files