Updated Engine to work well with auto correcting database errors.