Tool for executing SQL statements targeting multiple databases