allow staging to use production's db

pass the URL parama db=p to use the production database. rset by
passing '?db'