To bow and scrape is to act and behave in a obedient way towards an authority.
The idiomatic expression to be at loggerheads is used when two individual or group disagrees about a thing.