Fixed backup file creation to add tables in correct order. Fixes #99.