Add support for multiple DBs being tracked

This required making sure directories aren't the same to store data in.