fix(database): Escape database name in "ALTER DATABASE" SQL instructions (refs #5189)

When issuing "ALTER DATABASE xxx" commands, the database name should be
escaped with pg_escape_identifier() to properly handle non-alnum chars.

Bumped PHP requirement to >= 5.4.4 as native pg_escape_identifier()
function is only available in PHP >= 5.4.4.
Merge pull request #1355 from eguaj/3.2-A5189

fix(database): Escape database name in "ALTER DATABASE" SQL instructions (closes #5189)