Checking if database file is still needed