Improved database where options. Improved and fixed realfile format. Added cache disabled in redirect function.