key_commit: Created an address export sql function