Adding the SQLs for the guild level system