switched HTTPTemporaryRedirect to HTTPSeeOther, for standards
fixed a bad db call
more bugs