fix sp
Add ctor for testing that exposes databases directory.