I've been testing out this adding a user and granting privileges branch and this `unless` appeared to be broken if the database name was the same as the username, so I added an extra `| grep -w '${grants}'` on the end the make sure it worked.