Updated to dos to use a better database format