Update and rename functions.sql to fun_verifica_alianca.sql