delete relation role-application

modify rights_spec and remove application_id
modify sql script