Check if db file exists or not.