Remove os.environ from wireup.db

Chain: #2226 #2227 #2228 #2229 #2230