check db file