Replaced the pickle reg db with simpler flat files.

Closes #327