Externalized BerkeleyDB lib and base abstract class to a library
project.