Added region detection for db commands