heat map generation, air map function for db