Fixed bug in arearesolver - was not passing db to core function