Updates database to include User Id and image reference
Adds user session to http session