fixed runp
removed db submit for testing
debug
debug
fixed database environment variable declaration?
removed debug stuff