Small refactoring of lj-db-backup script