Raise exception if database file does not exist