sample implementation of notbed-db