Add basename in backup filename

For a correct use of backups insert basename in the name of the b  . DB_DATABASE . '_'ackup file.
Merge pull request #2507 from Rubens2014/patch-5

Add basename in backup filename