External sql script