swapped Agent and Agents table names to preserve more original schema