applysqlpatches command and deploy.sql script