Password encryption for database connectivity