Parse database connection string