{
    my $rec = $DB->get('automysqlbackup') || $DB->new_record( 'automysqlbackup', { type => 'webapp' } );
    my $pw = $rec->prop('DbPassword');

    if ( not $pw ) {
        $pw = `/usr/bin/openssl rand -base64 60 | tr -c -d '[:graph:]'`;
        chomp($pw);
        $rec->set_prop( 'DbPassword', $pw );
    } ## end if ( not $pw )
    my $entry;

    # delete the automysqlbackup key entries that are not required
    foreach my $setting (qw( Mysql53 Mysql55 Mysql57 )) {

        if ( defined $rec->prop('setting') ) {
            $rec->delete_prop($_);
        }
    } ## end foreach my $setting (qw( Mysql53 Mysql55 Mysql57 ))

    # delete the old init restart keys
    foreach my $sservice (qw( mysql53 mysql55 mysql57 )) {
        $entry = $DB->get("$sservice-mysqld");
        $entry->delete("$sservice-mysql.init") if $entry;
    } ## end foreach my $setting (qw( mysql53 mysql55 mysql57 ))

    # Remove the old MariaDB servceoi entries
    foreach my $sservice (qw(mariadb101 mariadb102 mariadb103 mariadb104 mariadb105 )) {
        $entry = $DB->get("$sservice-mariadb");
        $entry->delete("$sservice-mariadb") if $entry;
        $entry = $DB->get("$sservice-mysql.init");
        $entry->delete("$sservice-mysql.init") if $entry;
    } ## end foreach my $sservice (qw(mariadb101 mariadb102 mariadb103 mariadb104 mariadb105 ))
}
