issue #945 fixed bug in sqlite interaction handler for relationships in ExportToDatabase