collapsed references to pg for test and production into a single statement
ignore .secret
random token generator