What problem does it solve? Setting up and querying databases across development and production environments is error-prone and risky, especially when accidental writes to production data or destructive queries can cause data loss. This Skill provisions Replit's built-in PostgreSQL database, verifies its status, and executes SQL with built-in safety guardrails. ## Core Features & Use Cases - Database Provisioning: Check whether a PostgreSQL database exists and create one on demand, automatically setting environment variables like DATABASE_URL, PGHOST, and PGPASSWORD. - Safe SQL Execution: Run queries against development with full SQL support, or run read-only SELECT queries against a production replica, with Stripe table mutations and destructive statements blocked. - Data Warehouse Queries: Query BigQuery, Databricks (via the databricks-m2m connector), and Snowflake with optional result sampling. - Use Case: A user asks to "check the prod db" for active users. The Skill runs a read-only SELECT against the production replica and returns the results without any risk of modifying live data. ## Quick Start Ask the assistant to check whether the database is provisioned and create one if needed, then run a SELECT query to inspect your tables.