Pass in name when opening a database. Use it for the dumpfile.
Some dump improvements.

- Dumpfiles are now a concatenation of path and name
- Directory is made if it does not exist in the path
- All tests pass and fail as expected
- Function pointer in the db object to get the name of the dump file