Insert trend information into database