How do I use rails runner with the Gemfile in /var/www/discourse

I guess I can just use backticks with the sqlite binary? I’m only getting a single row afterall. But, I’m mystified why what I’m trying to do isn’t easy, I thought sqlite was the default db for all new rails projects. Did it get disabled intentionally for discourse?