better, hopefully faster, query
fix command invokation. -d doesn't do that
fix syntax