use the new `getDb` api function to get a db