Updates including database and session management code