WASA: A workflow-based architecture to support scientific database applications