database connectivity and user authentication