more work on the db cpp