database configuration and user authentication