db library

presently supports db connection and disconnecions