export the sql entry