BF: Cleaning SQL scripts
BF:If the contract doesn't exists or if no contract exists, edit user page wasn't clear.