Debugged mariadb and percona TH builds.

They now work when you set:
  database_engine = 'percona' [or 'mariadb']
  database_engine_package = 'percona-server-server' [or 'mariadb-server']

Change-Id: Ibec6379ca1bd79602e456724484f3dbc41a380f7