update the db api class