added -test to DBNAME
switched login to a POST