Why don't more people keep configuration / api keys / etc in the database?
1. Your configuration is backed up along with your data.
2. You can share configuration with multiple applications easily.
3. Use postgresql's LISTEN/NOTIFY to tell your applications about new configuration changes in real-time.
4. Your configuration is as secret as your data.