database connectivity & session tracking