test fixes; fixed user_register bug; added db_exists()