Adding support for getting the actual query size
fixed redirection from disabled database