Fix database backup.

Signed-off-by: Norv <a.w.norv@gmail.com>
Merge pull request #469 from norv/fixes_up

Fix database backup.