url generator (first version), saving user info in database