change db user and session key for 1.8.7 ruby