Library for NSDB