Basic library classes matching db info.

Closes #3