Fix reading more than one database
Add more tests for dump files