Added sql for check on autovacuum