Use libdb to comunicate with database backend.