Fixed database_to_csv, and changed download to get information after moreinfo callback