save user data into db to keep session